from typing import List

from fastapi import Form
from pydantic import BaseModel

headers = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
    "Host": "epaper.gmw.cn",
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36'

}


class UpdateHtml(BaseModel):
    cid: str
    keyid: str
    html: str
    down_date: str


class GuangMingRiBaoSave2(BaseModel):
    periodDate: str = ''
    html: str = ''
    url: str = ''
    years: str = ''
    moths: str = ''
    downdate: str = ''


class GuangMingRiBaoSave4(BaseModel):
    rawid: str = ''
    html: str = ''
    jsondicts: dict = dict()
    downdate: str = ''


class PaperGuangMingRiBaoSaveMonth(BaseModel):
    periodMonth: str = ''
    html: str = ''
    downdate: str = ''






class PaperGuangMingRiBaoDown(BaseModel):
    periodDate: str = ''
    url: str = ''
    marks: List[str] = []

class PaperGuangMingRiBaoGetDay(BaseModel):
    periodMonth: str = ''
    marks: List[str] = []



class GuangMingRiBaoParse4(BaseModel):
    downdate: str = ''
    jsondicts: dict = dict()
    html: str = ''
    rawid: str = ''
    batch: str = ''


class GuangMingRiBaoParseHtmlModel(BaseModel):
    periodDate: str = ''
    html: str = ''


class PaperGuangMingRiBaoParseDays(BaseModel):
    html: str = ''


class GuangMingRiBaoParse2(BaseModel):
    periodDate: str = ''
    html: str = ''


class GuangMingRiBaoParse3(BaseModel):
    periodDate: str = ''
    html: str = ''


class GuangMingRiBaoSave3(BaseModel):
    periodDate: str = ''
    html: str = ''
    url: str = ''
    years: str = ''
    moths: str = ''
    downdate: str = ''
    page: str = ''
    rawid_page: str = ''


class GuangMingRiBaoParseSave4(BaseModel):
    djson: dict = dict()
